{% extends "base.html" %}

{% block title %}{{country}} Buyers Contact Information{% endblock %}
{% block keywords %}{{country}} Buyers Contact Information{% endblock %}
{% block description %}Free view contact details for {{country}} buyers including address, contact person, email, telephone and fax number.{% endblock %}

{% block body %}
  <div class="span-15 prepend-1 colborder">
   <h3 align="center">{{country}} Buyers Contact Information (Total:{{ pager.totalCount }})</h3>
   <table cellspacing=0 cellpadding=0 width=100% class="tables data" border=0>
     <tr>
       <td align="center">Company Name</td>
       <td align="center">Contact Person</td>
       <td align="center">Filter by 
       <form action="/" method="get" id="categoryForm">
       <select name="category" style="width:200px" onchange="javascript:categoryForm.submit()">
         <option value="All">Category</option>
         {% include "category.html" %}
       </select>
       </form>
       </td>
     </tr>
 
     {% for buyer in buyers %}
       <tr>
         <td align="left"><a href="/showbuyer/{{buyer.key}}">{{ buyer.companyName }}</a></td>
         <td>{{buyer.contactName}}</td>
         <td><a href="/category/{{buyer.category}}" title="Show more {{buyer.category}} buyers">{{buyer.category}}</a></td>
       </tr>
     {% endfor %}
   </table>
   
   {% if pager %}
     {% include "pager.html" %}
   {% endif %}
   
   {% ifnotequal country "All" %}
     <p><h1 align="center"><a href="/">&lt;&lt; Back to global buyer list</a></h1></p>
   {% endifnotequal %}

</div>
<div class="span-7 last">

  <h3>Browser Buyers by Category</h3>
  <div>
  {% for c in categories %}
    <a href="/category/{{c.name|escape}}">{{c.name}}<em>({{c.count}})</em></a><br/>
  {% endfor %}
  </div>
</div>

{% endblock %}
